package com.hirain.iterator;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Created by caicf on 2016/8/28.
 */
public class ConcreteIterator implements Iterator {
    private List<String> list=new ArrayList<>();

    @Override
    public boolean hasNext() {
        return list.iterator().hasNext();
    }

    @Override
    public Object next() {
        return list.iterator().next();
    }

    @Override
    public void remove() {

    }
}
